package com.duoduo.mall.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 商品评价表
 * 
 * @author zhuge
 * @email 1399671339@qq.com
 * @date 2024-12-26 13:10:05
 */
@Data
@TableName("t_review")
public class ReviewEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 评价ID
	 */
	@TableId
	private Long id;
	/**
	 * 订单ID
	 */
	private Long orderId;
	/**
	 * 商品ID
	 */
	private Long productId;
	/**
	 * 用户ID
	 */
	private Long userId;
	/**
	 * 商家ID
	 */
	private Long merchantId;
	/**
	 * 评分：1-5星
	 */
	private Integer rating;
	/**
	 * 评价内容
	 */
	private String content;
	/**
	 * 评价图片，JSON数组
	 */
	private String images;
	/**
	 * 创建时间
	 */
	private Date createTime;

}
